package com.adulcimer.core.config;

import org.apache.http.HttpHost;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.elasticsearch.client.RestClient;

/**
 * @author Simon
 * @create 2025/2/6
 * @Description
 **/

@Configuration
public class ElasticSearchConfig {
    @Bean
    public RestClient restClient() {
        return RestClient.builder(new HttpHost("localhost", 9200, "http")).build();
    }
}
